package com.demo.entity;

import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 
 * </p>
 *
 * @author demo
 * @since 2024-07-08
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="Goods对象", description="")
public class Product implements Serializable {
    @TableId(value = "productId", type = IdType.AUTO)
    private Long productId;
    @TableField("productName")
    private String productName;
    @TableField("description")
    private String description;
    @TableField("categoryId")
    private Long categoryId;
    @TableField("price")
    private BigDecimal price;
    @TableField("stock")
    private Long stock;
    @TableField("supplierId")
    private Long supplierId;
    @TableField("imageUrl")
    private String imageUrl;
    @TableField("videoUrl")
    private String videoUrl;
    @JsonFormat(pattern = "yyyy-MM-dd hh:mm:ss", timezone = "GMT+8")
    @TableField("createTime")
    private Date createTime;
    @JsonFormat(pattern = "yyyy-MM-dd hh:mm:ss", timezone = "GMT+8")
    @TableField("updateTime")
    private Date updateTime;
    @TableField("sold")
    private Integer sold;
    @TableField("type")
    private String type;
    @TableField("click")
    private Integer click;


}
